// 电子签章配置接口
import request from '@/utils/request'
import { commonBaseUrl } from '@/utils'

const moduleName = commonBaseUrl('A')
// 查询列表接口
export function getListApi(data) {
    return request({
        url: moduleName + 'api/attachment/signatures/config/query',
        method: 'post',
        showLoading: true,
        data
    })
}

// 新增接口
export function addApi(data) {
    return request({
        url: moduleName + 'api/attachment/signatures/config/add',
        method: 'post',
        showLoading: true,
        data
    })
}

// 修改接口
export function updateApi(data) {
    return request({
        url: moduleName + 'api/attachment/signatures/config/update',
        method: 'post',
        showLoading: true,
        data
    })
}

// 删除接口
export function deleteApi(params) {
    return request({
        url: moduleName + 'api/attachment/signatures/config/del',
        showLoading: true,
        params
    })
}

// 获取文档类型接口
export function queryDocTypeApi(params) {
    return request({
        url: moduleName + 'api/attachment/signatures/config/queryDocType',
        params
    })
}
